package xhwl.hmo.mall.adapter;

import android.content.Context;

import java.util.List;

import xhwl.hmo.mall.R;
import xhwl.hmo.mall.http.bean.resp.MineAdressBean;
import xhwl.pulltorefresh.adapter.BaseAdapter;
import xhwl.pulltorefresh.adapter.ViewHolder;


public class MineAdressAdapter extends BaseAdapter<MineAdressBean.PersonInfoBean> {
    private Context context;
    List<MineAdressBean.PersonInfoBean> personInfoBeanList;

    public MineAdressAdapter(Context context, List<MineAdressBean.PersonInfoBean> personInfoBeanList) {
        super(context, R.layout.item_mineaddress, personInfoBeanList);
        this.context = context;
        this.personInfoBeanList = personInfoBeanList;
    }

    @Override
    public void convert(ViewHolder holder, final MineAdressBean.PersonInfoBean personInfoBean) {
        holder.setText(R.id.name, personInfoBean.getPERSON_NAME());
        holder.setText(R.id.name_card, personInfoBean.getSALE_NAME());
        holder.setText(R.id.state_card, personInfoBean.getBX_STATUS_STR());
    }
}